WS=$(cd `dirname $0`; pwd)/..

cd $WS/src
echo "输入包名: "
read name
echo "选择语言: 1. python 2. C"
read lang
echo "输入需要的拓展: "
read extend

case $lang in
'1')
    ros2 pkg create $name --build-type ament_python --dependencies rclpy $extend;;
'2')
    ros2 pkg create $name --build-type ament_cmake --dependencies rclpy $extend;;
*)
    ;;
esac